import Vuex from "vuex";
import Vue from "vue";
Vue.use(Vuex);
import UserModule from "./user";
import UserInfoModule from "./user_info";
import PositionModule from "./position";
import ClueModule from "./clue";
import SchoolModule from "./school";
import CityModule from "./city";
import NotificationModule from "./notification";

export default new Vuex.Store({
  state: {
    jwt_token: UserModule.state.jwt_token,
    contentShow: true,
  },
  getters: {},
  mutations: {
    changeContentShow(state, flag) {
      state.contentShow = flag;
    },
  },
  actions: {},
  modules: {
    // 导入模块
    user: UserModule,
    userInfo: UserInfoModule,
    position: PositionModule,
    clue: ClueModule,
    school: SchoolModule,
    city: CityModule,
    notification: NotificationModule,
  },
});
